#if 0
for(int i=0,j=0;i<sizeof(a)&&j<2;i++)
	if(a&(1<<i))j++;
i,j>1?0:1;
#endif

#define IS_POWOF2(a) ((a&(a-1))?0:1)

#include <stdio.h>

int main(int argc,char **argv)
{
	int ret = 0, a = 0;
	int res = 0;
	int i = 0,j = 0;

	printf("input the number: ");
	scanf("%d", &a);
	//res = IS_POWOF2(ret);
#if 0
label:
 	res = ((i<sizeof(a)*8))?((a&(1<<(i++)))?j++:j):(i++,j>1?0:1);
	if(i<=sizeof(a)*8)goto label;
#endif
	res = (a&(a-1))?0:1;
	//printf("result  = %d\n",IS_POWOF2(ret));
	printf("ret = %d, result  = %d,i = %d,j= %d\n",a, res,i,j);

	return 0;
}

